import Mock from 'mockjs';

let object = [{
		key: "/hyt/info",
		method: "get",
		data: Mock.mock({
			'STATUS': "SUCCESS",
			'DATA': {
				
				"viptypeid|4": /[A-Z][a-z][0-9][0-9][0-9][0-9][0-9][0-9]/,
				"name": "@cword(6,9)",
				"minuts|1" : "@integer(100,5000)",
				"statu|1": ["0", "1"],
				'price|2': "@integer(10,99)",
				
				"headimg": "@image('200x200')",
				"from|4": /[A-Z][a-z][0-9][0-9][0-9][0-9][0-9][0-9]/,
				
			}
		})
	},

	{
		key: "/hyt/page",
		method: "get",
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': {
					'current': 0,
					'size': 10,
					'pages': 6,
					'total': 55,
					"records|10": [{
						"viptypeid|4": /[A-Z][a-z][0-9][0-9][0-9][0-9][0-9][0-9]/,
						"name": "@cword(6,9)",
						"minuts|1" : "@integer(100,5000)",
						"statu|1": ["0", "1"],
						'price|2': "@integer(10,99)",
						
						"headimg": "@image('200x200')",
						"from|4": /[A-Z][a-z][0-9][0-9][0-9][0-9][0-9][0-9]/,
					}]
				}
			});
		}
	},
	{
		key: "/hyt/info",
		method: "delete",
		data: function() {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': "",
			});
		}
	},
	{
		key: "/hyt/info",
		method: "put",
		data: function() {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': "",
			});
		}
	},
	{
		key: "/hyt/info",
		method: "post",
		data: function() {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': "",
			});
		}
	},
];

export default object;
